package com.cyclinggle.cloud.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class SpringCloudGatewayApplication {

	/*@Bean
	public RouteLocator customRouteLocator(RouteLocatorBuilder builder) {
		ZonedDateTime datetime = LocalDateTime.now().plusDays(1).atZone(ZoneId.systemDefault());
		return builder.routes()
					  .route("before_route", r -> r.before(datetime)
											 .uri("http://baidu.com"))
					  .build();
	}*/

	public static void main(String[] args) {
		SpringApplication.run(SpringCloudGatewayApplication.class, args);
	}
}
